package ltd.newbee.mall.product.mapper;

import ltd.newbee.mall.product.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductMapper {
    Product findById(@Param("id") Long id);
    List<Product> findPage(@Param("offset") int offset, @Param("limit") int limit, @Param("keyword") String keyword);
    List<Product> findHot(@Param("limit") int limit);
    List<Product> findNew(@Param("limit") int limit);
    List<Product> findRecommend(@Param("limit") int limit);
}


